package cn.gx.learn.security_boot_jwt_websocket.base.dal.mysql;

import cn.gx.learn.security_boot_jwt_websocket.base.dal.database.User;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    default User selectByName(String username) {
        return selectOne( new LambdaQueryWrapper<User>().eq(User::getUsername,username));
    }



}
